import my_exception.checkException;
import relation.*;
import DB_file.*;
import java.io.*;
import java.util.ArrayList;

public class test {
    public static void main(String[] args) throws IOException, checkException {


        //表缓冲区
        ArrayList<Table> tables=new ArrayList<Table>();

        JsonReader reader=new JsonReader("src/data/s.json");
        Table table1=reader.readtable();
        tables.add(table1);
        reader.setFilepath("src/data/class.json");
        tables.add(reader.readtable());

        table1.showcreattable();
        table1.showtable();

        table1.FKcheck(tables);


    }
}